import request from '@/utils/request'

// 查询质控条目 列表
export function listQualityEntry(query) {
  return request({
    url: '/research/qualityEntry/list',
    method: 'get',
    params: query
  })
}

// 查询所有质控条目 列表
export function listAllEntry() {
  return request({
    url: '/research/qualityEntry/listAll',
    method: 'get'
  })
}

// 查询质控条目 详细
export function getQualityEntry(qcEntryId) {
  return request({
    url: '/research/qualityEntry/' + qcEntryId,
    method: 'get'
  })
}

// 新增质控条目
export function addQualityEntry(data) {
  return request({
    url: '/research/qualityEntry',
    method: 'post',
    data: data
  })
}

// 修改质控条目
export function updateQualityEntry(data) {
  return request({
    url: '/research/qualityEntry',
    method: 'put',
    data: data
  })
}

// 删除质控条目
export function delQualityEntry(qcEntryId) {
  return request({
    url: '/research/qualityEntry/' + qcEntryId,
    method: 'delete'
  })
}

// 导出质控条目
export function exportQualityEntry(query) {
  return request({
    url: '/research/qualityEntry/export',
    method: 'get',
    params: query
  })
}
